﻿using Ledict.ConditionExtract.DAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class RegInfoBLL
    {
        RegInfoDAL dal = new RegInfoDAL();

        /// <summary>
        /// 获取RegexInfoUnit数据
        /// </summary>
        /// <param name="eiId"></param>
        /// <returns></returns>
        public DataTable GetRegexInfoUnit(string eiId)
        {
            return dal.GetRegexInfoUnit(eiId);
        }

        /// <summary>
        /// 获取Reg_InfoRegexRelation数据
        /// </summary>
        /// <param name="eiId"></param>
        /// <returns></returns>
        public DataTable Reg_InfoRegexRelation(string eiId)
        {
            return dal.Reg_InfoRegexRelation(eiId);
        }

        /// <summary>
        /// 获取Reg_Regexs数据
        /// </summary>
        /// <param name="eiId"></param>
        /// <returns></returns>
        public DataTable GetReg_Regexs(string eiId)
        {
            return dal.GetReg_Regexs(eiId);
        }

        /// <summary>
        /// 获取Reg_InfoUnit表结构
        /// </summary>
        /// <returns></returns>
        public DataTable GetRegexInfoUnitTableStructs()
        {
            return dal.GetRegexInfoUnitTableStructs();
        }

        /// <summary>
        /// 获取Reg_InfoRegexRelation表结构
        /// </summary>
        /// <returns></returns>
        public DataTable GeReg_InfoRegexRelationTableStructs()
        {
            return dal.GeReg_InfoRegexRelationTableStructs();
        }

        /// <summary>
        /// 获取Reg_Regexs表结构
        /// </summary>
        /// <returns></returns>
        public DataTable GeReg_RegexsTableStructs()
        {
            return dal.GeReg_RegexsTableStructs();
        }

        /// <summary>
        ///根据CCID修改信息单元的名称
        /// </summary>
        /// <returns></returns>
        public bool UpdateEIName(string oldName, string newName, string ccId)
        {
            return dal.UpdateEIName(oldName, newName, ccId);
        }
    }
}
